package com.atguigu.pojo;

import java.util.Objects;

public class DeployEnv {
    String id;
    String name;

    public DeployEnv() {
    }

    public DeployEnv(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DeployEnv)) return false;
        DeployEnv deployEnv = (DeployEnv) o;
        return getId().equals(deployEnv.getId()) && getName().equals(deployEnv.getName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getName());
    }

    @Override
    public String toString() {
        return "DeployEnv{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
